home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / awe2-0_1.lha / awe2-0.1 / Src / RCS / HardwareContextP-sparc.h,v < prev    next >
Text File  |  1990-06-28  |  1KB  |  73 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    grunwald:1.2; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     90.06.28.14.46.53;  author grunwald;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     90.06.08.17.27.22;  author grunwald;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @*** empty log message ***
  27. @
  28. text
  29. @// This may look like C code, but it is really -*- C++ -*-
  30. // 
  31. // Copyright (C) 1988 University of Illinois, Urbana, Illinois
  32. //
  33. // written by Dirk Grunwald (grunwald@@cs.uiuc.edu)
  34. //
  35. #ifndef    HardwareContextP_h
  36. #define    HardwareContextP_h
  37. #pragma once
  38.  
  39. #include "HardwareContext.h"
  40.  
  41. inline void **
  42. HardwareContext::mallocAt()
  43. {
  44.     return( stackMallocAt );
  45. }
  46.  
  47. static inline void
  48. HardwareContext::switchContext(HardwareContext *to)
  49. {
  50.     
  51.     if ( checkStackLimits ) {    // check old context
  52.     checkStack();
  53.     }
  54.  
  55.     magicSwitchTo(to);
  56.  
  57.     if ( checkStackLimits ) {    // check new context
  58.     checkStack();
  59.     }
  60. }
  61.  
  62. #endif    HardwareContextP_h
  63. @
  64.  
  65.  
  66. 1.1
  67. log
  68. @Initial revision
  69. @
  70. text
  71. @d22 1
  72. @
  73.